<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>订单确认 - 赛博朋克咖啡屋</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <style>
        body {
            background-color: #0f172a;
            color: #e2e8f0;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        .neon-text {
            text-shadow: 0 0 5px #0ff, 0 0 10px #0ff;
        }
        .order-card {
            background-color: #1e293b;
            border: 2px solid #0ea5e9;
            box-shadow: 0 0 10px #0ea5e9, 0 0 20px #0ea5e9;
        }
        .btn-neon {
            background-color: #0284c7;
            box-shadow: 0 0 5px #0284c7;
            transition: all 0.3s ease;
        }
        .btn-neon:hover {
            background-color: #0369a1;
            box-shadow: 0 0 10px #0284c7, 0 0 20px #0284c7;
        }
    </style>
</head>
<body class="min-h-screen flex flex-col justify-center items-center p-4">
    <div class="max-w-md w-full order-card rounded-lg p-8">
        <h1 class="text-3xl font-bold text-center mb-6 text-cyan-400 neon-text">
            >>> 订单生成中... <<<
        </h1>
        
        <div class="space-y-4 mb-8">
            <div class="text-lg">
                <span class="text-cyan-300">顾客：</span>
                <span th:text="${order.customerName}" class="font-semibold"></span>
            </div>
            
            <div class="text-lg">
                <span class="text-cyan-300">订单详情：</span>
                <div th:each="item : ${order.items}">
                    <span class="font-semibold" th:text="|${item.quantity}杯 ${item.coffee.name}|"</span>
                </div>
            </div>
            
            <div class="text-lg">
                <span class="text-cyan-300">总价：</span>
                <span class="font-semibold text-xl text-white" th:text="|￥${order.totalPrice}|"</span>
            </div>
            
            <div class="text-lg">
                <span class="text-cyan-300">预计制作时间：</span>
                <span class="font-semibold" th:text="${order.estimatedTime}"></span>
            </div>
            
            <div class="text-lg">
                <span class="text-cyan-300">你的订单号：</span>
                <span class="font-bold text-xl text-cyan-200" th:text="${order.orderNumber}"></span>
            </div>
        </div>
        
        <div class="text-center mb-6">
            <p class="text-xl text-cyan-200">(◕‿◕) 感谢使用AI点餐助手！</p>
        </div>
        
        <a href="/" class="block text-center py-3 text-white font-bold rounded-md btn-neon">
            返回首页
        </a>
    </div>
</body>
</html>